package com.gudaomai.ekproject.service;

import java.util.List;

import com.gudaomai.ekproject.common.CommonException;
import com.gudaomai.ekproject.entity.Role;
import com.gudaomai.ekproject.service.BaseService;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author zenghualu
 * @since 2017-06-26
 */
public interface IRoleService extends BaseService<Role> {
	
	public List<Role> getRolesByUserId(String userid) throws CommonException;
	
	public Role getInitRole() throws CommonException;
	
	public boolean isExist(String roleName) throws CommonException;
}
